package com.projectmanagement.server.dao.mapper;


import com.projectmanagement.server.dao.entity.po.CaseDetail;
import com.projectmanagement.server.dao.entity.po.TaskPlan;
import com.projectmanagement.server.dao.tkBaseMapper.TkBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @description
 * @author 星空梦语
 * @date 2021/3/9 下午4:08
 */
@Mapper
public interface CaseDetailMapper extends TkBaseMapper<CaseDetail> {

    int queryCountByExample(@Param("caseId") String caseId);

    List<CaseDetail> queryTaskByExample(@Param("taskId") int taskId);

    List<CaseDetail> queryPageData(@Param("offset") int offset, @Param("size") int size,
             @Param("queryTaskText") String queryTaskText, @Param("name") String name);

    int queryPageCount(@Param("queryTaskText") String queryTaskText,@Param("name") String name);

    int updateParent(@Param("parentId")String parentId);

    int insertBatch(@Param("caseList")List<CaseDetail> caseList);





}
